<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>上传图片</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<LINK href="<%=path %>/admin/css/admin.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=path %>/admin/js/myJs.js"></script>
	<script type="text/javascript" src="<%=path%>/ckeditor/ckeditor.js"></script>
	<link href="<%=path %>/admin/css/myStyle.css" rel="stylesheet" type="text/css" />
	<style type="text/css">
		input{
			width: 300px;
		}
	</style>

	
  </head>
  
  <body>
   <TABLE cellSpacing=0 cellPadding=0 width="95%" align=center border=0>
  <TR height=20>
    <TD></TD></TR>
  <TR height=22>
    <TD style="PADDING-LEFT: 20px; FONT-WEIGHT: bold; COLOR: #ffffff" 
    align="center" background="<%=path %>/admin/images/title_bg2.jpg">上传图片</TD></TR>
  <TR bgColor=#ecf4fc height=12>
    <TD></TD></TR>
  <TR height=20>
    <TD></TD></TR></TABLE>
    
   <s:form action="pictureup_addPicture" method="post" enctype="multipart/form-data">
  
<TABLE cellSpacing=0 cellPadding=2 width="95%" align=center border=0>

  <TR>
    <TD align=right width=100>图片描述：</TD>
    <TD style="COLOR: #880000">
    <input type="text" name="picture.picDesc"/>
    </TD></TR>	
    <TR>
    <TD align=right width=100>图片地址：</TD>
    <TD style="COLOR: #880000">
    	<input  type="file" name="file"/>
   	<span style="color:red">  <s:fielderror></s:fielderror></span>
   	</TD>
    </TR>	
    
    <tr align="left">
		<td colspan="2" align="left" style="padding-left: 120px;">
			<button type="submit" class="allDelete">上传图片</button>
			<button type="reset" class="allDelete">重置</button>
		</td>
	</tr>
    
 </TABLE>
 </s:form>

  </body>
</html>
